home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindspring.com!usenet
- From: mroot@atl.mindspring.com (Danette & Murray Root)
- Newsgroups: comp.lang.c++
- Subject: Re: Help!!!!!! for BC4.5
- Date: Sun, 21 Apr 1996 02:15:48 GMT
- Organization: MindSpring Enterprises
- Message-ID: <4lc5m2$a2k@mule1.mindspring.com>
- References: <4l9hrs$506@castle.nando.net>
- NNTP-Posting-Host: user-168-121-127-88.dialup.mindspring.com
- X-Newsreader: Forte Free Agent 1.0.82
-
- Charlie Jiang <hongjun@nando.net> wrote:
-
- -----snip----
-
- =>---the SWITCH loop.
- =>it comes out the error message like "case bypassing initialization of a
- =>local variable in function main[]". Oh, by the way, I have put more than
- =>one SWITCH loop in each 'case:'.
-
- where you have:
-
- case x:
- int y = some_value;
- do-something;
-
- change it to:
-
- case x;
- {
- int y = some_value;
- do_something;
- }
-
- if y is not used later. if it is, put the
-
- int y = some_value;
-
- before the switch.
-
-
-